package com.malty.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

@Data
public class KidsWantReq {
    @JSONField(name = "ak")
    private String ak;
    @JSONField(name = "sign")
    private String sign;
    @JSONField(name = "timestamp")
    private Long timestamp;
    @JSONField(name = "data")
    private Object data;

    public Object getData(Class clazz) {
        return JSON.parseObject(JSON.toJSONString(data), clazz);
    }
}
